package com.zmn.oms.model.entity.member;

import lombok.Data;
import lombok.ToString;
import org.dozer.Mapping;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 类描述：查询会员权益
 *
 * @author liuying
 * @date 2018/12/20 11:15
 */
@Data
@ToString(callSuper = true)
public class MemberEquityQuery implements Serializable {

    /**
     * 会员ID
     */
    @NotNull(message = "手机号不能为空")
    private String telephone;

    /**
     * 产品
     */
    @NotNull(message = "产品不能为空")
    private Integer productId;

    /**
     * 品牌ID
     */
    private Integer brandId;

    /**
     * 产品数量
     */
    @NotNull(message = "产品数量不能为空")
    @Mapping("productNumber")
    private Integer number;

    /**
     * 订单ID
     */
    private Long orderId;
}
